home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _C281A5FF059641E48FD80A6813F3549C < prev    next >
Encoding:
Text File  |  2004-06-23  |  533 b   |  40 lines

  1.  
  2. regc(0, "COMBINED_XFORM")
  3. regc(4, "MODELVIEW_XFORM")
  4. regc(10, "FOG_PARAMS")
  5.  
  6. regc(20, "TEXTURE0_XFORM")
  7. regc(24, "TEXTURE1_XFORM")
  8.  
  9. regc(28, "SHADOW_DIR_MS")
  10.  
  11. vshader("
  12.  
  13. #define point        v0
  14.  
  15. #include <fog.inc>
  16.  
  17.     vs_1_1
  18.  
  19.     def    c30, 0, 0, 0, 0
  20.  
  21.     dcl_position    point
  22.  
  23.     ; output position
  24.     m4x4    oPos, point, c0
  25.  
  26.     ; pos in camera space
  27.     m4x4    r0, point, c4
  28.  
  29.     ; output texcoords
  30.     m4x4    oT0, r0, c20
  31.  
  32.     dp4    oT1.x, r0, c24
  33.     dp4    oT1.y, r0, c25
  34.  
  35.     ; calc fog
  36.        dp4    r0.x, point, c2
  37.         FOG(r0.x, c10, r10)
  38. ")
  39.  
  40.